package com.atguigu.gulimall.product.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @author Yanglinfengkk
 * 可配置线程池-属性配置类
 */
@Data
@Component
@ConfigurationProperties(prefix = "gulimall.thread")
public class ThreadPoolConfigProperties {
    /**
     * 自定义核心线程数大小
     */
    private Integer coreSize;

    /**
     * 自定义最大线程池大小
     */
    private Integer maxSize;

    /**
     * 自定义休眠时长
     */
    private Integer keepAliveTime;
}
